<?php


class Phuhome_ProductController extends Zend_Controller_Action 
     { 
         public function listAction() 
         { 
		 $this->view->title='test so san pham trong kho';
          
		 $currentProducts = Model_Productp::getProduct();
		if ($currentProducts->count() > 0) {
			$this->view->products = $currentProducts;
			$this->view->count=$currentProducts->count();
		} else {
			$this->view->products = null;
		}
		} 
		
		
		
		public function productdetailAction()
		{   
		
		
		/*$id = (int)$this->getRequest()->getParam('id');
        //if ($id == 0) {
          //  $this->_redirect('/');
            //return;
        //}
		
		 $this->view->title='thong tin chi tiet san pham:';
		 $productcurrent=Model_ProductDetails::getProductDetail($id);
		 $this->view->detail=$productcurrent;
		 */
		
		
		}
	}